/**
 * Created by Administrator on 2017/4/26.
 */

$(function(){
    $("#downLode").click(function(e){
        if (navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)) {
            var loadDateTime = new Date();
            window.setTimeout(function() {
                var timeOutDateTime = new Date();
                if (timeOutDateTime - loadDateTime < 5000) {
                    window.location = "https://itunes.apple.com/cn/app";//ios下载地址
                } else {
                    window.close();
                }
            },25);
            window.location = "http://a.app.qq.com/o/simple.jsp?pkgname=com.youyuzone.secretvalentine";
        }else if (navigator.userAgent.match(/android/i)) {
            window.location = 'http://a.app.qq.com/o/simple.jsp?pkgname=com.youyuzone.secretvalentine';

        }
    })
})
